<?php echo $this->render('includes/top.phtml');?>
<!-- ...................... Header ...................... -->

<div id="header-bottom">
	<div id="header-bg">			
			
<!-- ...................... Page Title and Search Box ...................... -->					
		<div id="title-bar">
			<h1>Noticias al d&iacute;a de hoy</h1>
		</div>
		
		<div class="clear"></div>
<!-- ...................... End Page Title and Search Box ...................... -->	
		
	</div>  <!-- #header-bg -->
</div>  <!-- #header-bottom -->	
<!-- ...................... End Header ...................... -->

<!-- ...................... Container & Content ...................... -->	
<div id="container">	
	<div id="content">	
	
		<div class="two-third">
	
			<?php
		        foreach ($this->noticias as $n) {
            ?>
            <!-- Post -->			
			<div class="postbox-bg">
				<div class="postbox-bottom">
					<div class="postbox-top">					
							<div class="postleft">								
								<h3><a href="/noticias/index/id/<?php echo $n['id']; ?>"><?php echo $n['titulo']; ?></a></h3>
								<div class="fade-img2 blog-post-img" data-rel="zoom-icon">
									<a href="/noticias/<?php echo $n['foto']; ?>" data-rel="prettyPhoto[mygallery<?php echo $n['id']; ?>]" title="<?php echo $n['titulo']; ?>"><img src="/noticias/<?php echo $n['foto']; ?>" alt="<?php echo $n['titulo']; ?>" class="1round5" width="416" height="277" /></a></div>
								<p><?php echo $n['descripcion']; ?></p>
							</div><!-- .postleft -->			
							
							<div class="postright">						
								<div class="post-date"><?php echo date("d-M-Y", strtotime($n['fecha'])); ?></div>
								<div class="clear"></div>
								
								<ul class="post-fields">
									<?php
									if(sizeof($n["Galeria"][0]) > 0 ) { ?>
                                    <li class="icon-gallery"><a href="/galerias/index/id/<?php echo $n['Galeria'][0][0]['id']; ?>">Galer&iacute;a</a></li>
                                    <?php } 
									if(sizeof($n["Video"][0]) > 0) { ?>
									<li class="icon-video"><a href="/videos/index/id/<?php echo $n['Video'][0][0]['id']; ?>">Video</a></li>
									<?php } ?>
								</ul>
								
								<!--<div class="icon-share"><a href="#" class="addthis_button fade-img2">Compartir</a></div>-->
								
								<div class="clear"></div>	
								<div class="post-button"><a href="/noticias/index/id/<?php echo $n['id']; ?>" class="button-small">Leer m&aacute;s</a></div>
								<div class="clear"></div>							
							</div>	<!-- .postright -->		
					
							<div class="clear"></div>
					</div>
				</div>
			</div>
            <?php } ?>
			
			<!--<a href="#" class="button-small left">&larr; Noticias anteriores</a>
			<a href="#" class="button-small right">Noticias recientes &rarr;</a>-->
			<div class="clear"></div>
			
			
		</div> <!-- .two-third -->
        
<?php echo $this->render('includes/sidebar.phtml');?>

	<div class="clear"></div>		
		
	</div> <!-- #content -->
</div> <!-- #container -->	
<!-- ...................... End Container & Content ...................... -->
<script>
    $(document).ready(function(){
        $("#top-about").parent().removeClass('active');
        $("#top-project").parent().removeClass('active');
        $("#top-noticias").parent().addClass('active');
        $("#top-multimedia").removeClass('active');
        $("#top-contacto").parent().removeClass('active');
    });
</script>
<?php echo $this->render('includes/footer.phtml');?>
        